/*
 * KKContactListener.h
 *
 *  Created on: 2013-9-15
 *      Author: wanghua
 */

#ifndef KKCONTACTLISTENER_H_
#define KKCONTACTLISTENER_H_

#include "Box2D/Box2D.h"
#include "cocos2d.h"

class KKContactListener: public b2ContactListener {
public:
	virtual ~KKContactListener(void);
private:
	KKContactListener(void);
	void BeginContact(b2Contact* contact);
	void EndContact(b2Contact* contact);
	void performContactEvent(b2Body* a, b2Body* b);
public:
	static KKContactListener* sharedListener();
private:
	static KKContactListener* instance;
};

#endif /* KKCONTACTLISTENER_H_ */
